package 线程.Lock锁;

public class Txet {
    public static void main(String[] args) {
        //创建线程类对象
        MyTh mt1=new MyTh();
        MyTh mt2=new MyTh();
        MyTh mt3=new MyTh();

        //设置线程名字
        mt1.setName("窗口1");
        mt2.setName("窗口2");
        mt3.setName("窗口3");

        //开启线程
        mt1.start();
        mt2.start();
        mt3.start();
    }
}
